package com.zhb.designmode.structure.agency.staticc;

public class Agency implements Target {

    private Target target;

    public Agency(Target target) {
        this.target = target;
    }

    public void buyHouse() {
        System.out.println("中介寻找房源");
        target.buyHouse();
        System.out.println("中介引导客户签订合同");
    }
}
